package com.he.strategymodel;

import com.he.strategymodel.strategy.concretestrategy.SaleStategyDiscount;
import com.he.strategymodel.context.StategyContext;

import java.util.Scanner;

public class Client {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (true) {
            double v = scanner.nextDouble();
            StategyContext stategyContext = new StategyContext(SaleStategyDiscount.class);
            System.out.println(stategyContext.getFinalMoney(v));
        }
    }
}
